package com.greensam.pixelengine.annotation;

import com.greensam.pixelengine.pojo.emuns.RoleEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author Macro_Ray
 * @since 2025/6/19 14:32
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface AuthCheck {

    /**
     * 必须具备某个角色才能使用
    */
    RoleEnum[] mustRole() default {};
}
